
#ifndef _TIME_included_
#define _TIME_included_

#include "FreeRTOS.h"

//
// This converts ms to ticks
//
//#define getTicksFromMillis(A) (((A * 1000)/(1000000 / configTICK_RATE_HZ)))
//#define getTicksFromMillis(x)   ((uint32_t)x*1000/configTICK_RATE_HZ)
#define getTicksFromMillis(x)   ((uint32_t)x*F_CPU/configTICK_RATE_HZ/1000)

#define getTickCount            xTaskGetTickCount

#endif // _TIME_included_
